package com.cloudkinto.service.dic;

import com.cloudkinto.common.exception.BizException;
import com.cloudkinto.common.web.PageResult;
import com.cloudkinto.common.web.SingleResult;
import com.cloudkinto.entity.DicDo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cloudkinto.service.dic.vo.dic.DicAddReq;
import com.cloudkinto.service.dic.vo.dic.DicDetailRes;
import com.cloudkinto.service.dic.vo.dic.DicListPageRes;
import com.cloudkinto.service.dic.vo.dic.DicUpdateReq;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 系统码表 service接口
 * </p>
 * @author 张永远
 * @since 2020-05-19
 */
public interface DicService extends IService<DicDo> {

    SingleResult addInit();

    DicAddReq add(DicAddReq req, Long userId) throws BizException;

    SingleResult updateInit(Long id);

    DicUpdateReq update(DicUpdateReq updateVo, Long userId) throws BizException;

    int delete(Long id, Long userId);

    DicDetailRes detail(Long id);

    SingleResult pageInit();

    List<DicListPageRes> getList(Map<String, String> map);

    PageResult getListPage(Map<String, String> map);
}
